package cn.stylefeng.guns.modular.manager.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 佣金总计
 * </p>
 *

 */
@TableName("flow_commission_management")
public class FlowCommissionManagement implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "commission_id", type = IdType.AUTO)
    private Long commissionId;

    @TableField("order_id")
    private Long orderId;

    @TableField("user_id")
    private String userId;

    @TableField("all_price")
    private BigDecimal allPrice;

    @TableField("draw_price")
    private BigDecimal drawPrice;//已提现金额

    @TableField("can_draw_price")
    private BigDecimal canDrawPrice;//可提现金额

    @TableField("one_draw_price")
    private BigDecimal oneDrawPrice;//每笔订单提成佣金

    @TableField("apply_draw_price")
    private BigDecimal applyDrawPrice; //提现申请金额

    @TableField("draw_sign")
    private Long drawSign; //提现申请标记  1.同意提现申请

    @TableField("only_sign")
    private Long onlySign;

    @TableField("account")
    private String account;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Long getOnlySign() {
        return onlySign;
    }

    public void setOnlySign(Long onlySign) {
        this.onlySign = onlySign;
    }

    public BigDecimal getApplyDrawPrice() {
        return applyDrawPrice;
    }

    public void setApplyDrawPrice(BigDecimal applyDrawPrice) {
        this.applyDrawPrice = applyDrawPrice;
    }

    public Long getDrawSign() {
        return drawSign;
    }

    public void setDrawSign(Long drawSign) {
        this.drawSign = drawSign;
    }

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCommissionId() {
        return commissionId;
    }

    public void setCommissionId(Long commissionId) {
        this.commissionId = commissionId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public BigDecimal getAllPrice() {
        return allPrice;
    }

    public void setAllPrice(BigDecimal allPrice) {
        this.allPrice = allPrice;
    }

    public BigDecimal getDrawPrice() {
        return drawPrice;
    }

    public void setDrawPrice(BigDecimal drawPrice) {
        this.drawPrice = drawPrice;
    }

    public BigDecimal getCanDrawPrice() {
        return canDrawPrice;
    }

    public void setCanDrawPrice(BigDecimal canDrawPrice) {
        this.canDrawPrice = canDrawPrice;
    }

    public BigDecimal getOneDrawPrice() {
        return oneDrawPrice;
    }

    public void setOneDrawPrice(BigDecimal oneDrawPrice) {
        this.oneDrawPrice = oneDrawPrice;
    }

    @Override
    public String toString() {
        return "FlowCommissionManagement{" +
                "commissionId=" + commissionId +
                ", orderId=" + orderId +
                ", userId=" + userId +
                ", allPrice=" + allPrice +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", drawPrice=" + drawPrice +
                ", canDrawPrice=" + canDrawPrice +
                ", oneDrawPrice=" + oneDrawPrice +
                ", applyDrawPrice=" + applyDrawPrice +
                ", drawSign=" + drawSign +
                        ", onlySign=" + onlySign +
                ",account="+account+
                "}";
    }
}
